class Human:
    def __init__(self, name):
        self.name = name
    def say_name(self):
        print(self.name)

class Stu(Human): # 继承Human类
    def __init__(self, name, age):
        super().__init__(name) # 调用父类构造函数
        self.age = age
    def say_age(self):
        print(self.age)

stu1 = Stu('张三', 18)
stu1.say_age()
stu1 = Stu('李四', 25)
stu1.say_name()